<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>4常见网页布局样式</title>
		<style>
			* {
				margin: 0;
				padding: 0;
			}
			.top {
				height: 40px;
				background-color: #10b076;
			}
			.banner {
				width: 1150px;
				height: 200px;
				margin: 10px auto;
				background-color: #10b076;
			}
			.main {
				width: 1150px;
				height: 400px;
				margin: 0 auto;
			}
			.main div {
				float: left;
				width: 280px;
				height: 400px;
				background-color: #10b076;
				margin-right: 10px;
			}
			.main .last {
				margin-right: 0px;
			}
			.footer {
				height: 200px;
				background-color: #10b076;
				margin-top: 10px;
			}
		</style>
	</head>
	<body>
		<div class="top">top</div>
		<div class="banner">banner</div>
		<div class="main">
			<div>1</div>
			<div>2</div>
			<div>3</div>
			<div class="last">4</div>
		</div>
		<div class="footer">footer</div>
	</body>
</html>